package com.liao.badminton.vo;

import com.liao.badminton.code.BaseField;
import io.swagger.annotations.ApiModelProperty;
import java.lang.String;
import java.util.Date;
import java.util.List;
import lombok.Data;
import com.liao.badminton.entity.SystemSmsLog;
/**
* @author liaocheng
* @date 2024-11-01
* description:短信日志
*/
@Data
public class SystemSmsLogVo  extends BaseField {

    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "短信渠道编号")
    private Long channelId;

    @ApiModelProperty(value = "短信渠道编码")
    private String channelCode;

    @ApiModelProperty(value = "模板编号")
    private Long templateId;

    @ApiModelProperty(value = "模板编码")
    private String templateCode;

    @ApiModelProperty(value = "短信类型")
    private Integer templateType;

    @ApiModelProperty(value = "短信内容")
    private String templateContent;

    @ApiModelProperty(value = "短信参数")
    private String templateParams;

    @ApiModelProperty(value = "短信 API 的模板编号")
    private String apiTemplateId;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "用户编号")
    private Long userId;

    @ApiModelProperty(value = "用户类型")
    private Integer userType;

    @ApiModelProperty(value = "发送状态")
    private Integer sendStatus;

    @ApiModelProperty(value = "发送时间")
    private Date sendTime;

    @ApiModelProperty(value = "发送结果的编码")
    private Integer sendCode;

    @ApiModelProperty(value = "发送结果的提示")
    private String sendMsg;

    @ApiModelProperty(value = "短信 API 发送结果的编码")
    private String apiSendCode;

    @ApiModelProperty(value = "短信 API 发送失败的提示")
    private String apiSendMsg;

    @ApiModelProperty(value = "短信 API 发送返回的唯一请求 ID")
    private String apiRequestId;

    @ApiModelProperty(value = "短信 API 发送返回的序号")
    private String apiSerialNo;

    @ApiModelProperty(value = "接收状态")
    private Integer receiveStatus;

    @ApiModelProperty(value = "接收时间")
    private Date receiveTime;

    @ApiModelProperty(value = "API 接收结果的编码")
    private String apiReceiveCode;

    @ApiModelProperty(value = "API 接收结果的说明")
    private String apiReceiveMsg;

    private List<Long> delIds;  //批量删除ids

    public static SystemSmsLogVo invertToVo(SystemSmsLog systemSmsLog){
        SystemSmsLogVo vo = new SystemSmsLogVo();
        BaseField.invert(systemSmsLog, vo);
        vo.setId(systemSmsLog.getId());
        vo.setChannelId(systemSmsLog.getChannelId());
        vo.setChannelCode(systemSmsLog.getChannelCode());
        vo.setTemplateId(systemSmsLog.getTemplateId());
        vo.setTemplateCode(systemSmsLog.getTemplateCode());
        vo.setTemplateType(systemSmsLog.getTemplateType());
        vo.setTemplateContent(systemSmsLog.getTemplateContent());
        vo.setTemplateParams(systemSmsLog.getTemplateParams());
        vo.setApiTemplateId(systemSmsLog.getApiTemplateId());
        vo.setMobile(systemSmsLog.getMobile());
        vo.setUserId(systemSmsLog.getUserId());
        vo.setUserType(systemSmsLog.getUserType());
        vo.setSendStatus(systemSmsLog.getSendStatus());
        vo.setSendTime(systemSmsLog.getSendTime());
        vo.setSendCode(systemSmsLog.getSendCode());
        vo.setSendMsg(systemSmsLog.getSendMsg());
        vo.setApiSendCode(systemSmsLog.getApiSendCode());
        vo.setApiSendMsg(systemSmsLog.getApiSendMsg());
        vo.setApiRequestId(systemSmsLog.getApiRequestId());
        vo.setApiSerialNo(systemSmsLog.getApiSerialNo());
        vo.setReceiveStatus(systemSmsLog.getReceiveStatus());
        vo.setReceiveTime(systemSmsLog.getReceiveTime());
        vo.setApiReceiveCode(systemSmsLog.getApiReceiveCode());
        vo.setApiReceiveMsg(systemSmsLog.getApiReceiveMsg());
        return vo;
    }
}
